package com.noreply.parser;

import com.noreply.parser.entity.UserXtd;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ParserApplication {

	public static void main(String[] args) {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring-bean.xml");
		//UserXtd user = (UserXtd) applicationContext.getBean("testUserBean");
		//System.out.println(user.getEmailAddress());

		//UserXtd user2 = (UserXtd) applicationContext.getBean("testUserBean2");
		//System.out.println(user.getEmailAddress());

		for(String s : applicationContext.getBeanNamesForType(UserXtd.class)) {
			System.out.println(s);
		}
	}

}
